package 齐祥进;

public class data {
    public static void main(String[] args) {
        Zi zi =new Zi(666);

    }
}
class  Fu {
    public Fu() {
        System.out.println("父类的无参构造方法");
    }

    static {
        System.out.println("父亲的静态代码块");
    }
    {
        System.out.println("父亲的构造代码块");
    }
}
class  Zi extends  Fu{
    public  int as;

    public Zi(int as) {
        this.as = as;
        System.out.println("儿子的单参构造方法");
    }

    static {
        System.out.println("儿子的静态代码块");
    }
    {
        System.out.println("儿子的构造代码块");
    }
}